$(function(){
	Cufon.set('fontFamily', 'HeliosCond').replace("#right .content .top_block .right h2, #horizontalwrap a span, .news h1, #right .content .about h1, #right .content .text .left .press h2, #submenu a", {hover: true});
	
	$('#submenu').dropDownMenu({timer:500});	
	$('.nyroModal').nyroModal();
	
	$(".ul_submenu li a").bind("click", function(){
		if($(this).attr('class')!='active')
		{
			$(".ul_submenu li a").removeClass('active');
			$(this).addClass('active');
			
			$(".hidediv div").hide();
			$("#"+$(this).attr("rel")).fadeIn();
			
			return false;
		}
	});
	
	/*if(!FlashDetect.installed){
		$("#banner_block").html('<a href="/test_drive.html"><img src="/uploads/files/swf/234x200_suzuki_999.jpg?r='+Math.random()+'" /></a>');			
	}else{
		$("#banner_block").flash({src:'/uploads/files/swf/234x200_suzuki_999.swf?r='+Math.random(),width:220,height:200,menu:false,wmode:'opaque'});
	}	
	$(".main-model-list li a").hover(
		function(){
			$(this).css({"opacity":"0.75"});
		},
		function(){
			$(this).css({"opacity":"1"});
		}
	);	
	*/
});